package com.iocup.keybastion.core.lock;

import java.util.function.Consumer;

/**
 * @Description: 锁接口，主要用于集群部署时的一些处理
 * @Author: xyjxust
 * @Date: 2022/3/22 11:18
 */
public interface Lock {

    void tryLock(LockType lockType,String  key, Consumer<String> consumer);
}
